package com.zuofei.springcloud.task;


import com.zuofei.springcloud.job.FileJob;
import org.quartz.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import java.util.Date;

@Service
public class FileTask extends BaseTask {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("File Task:"+new Date());
    }

    @Override
    public String getCronExpression() {
        return "0/3 * * * * ?";
    }
}
